//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.ft.adbix.core.listener;

import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;

public abstract class CusClickListener implements OnClickListener {
    private long lastClickTime = 0L;
    private int viewId = 0;
    private ViewGroup viewGroup;

    public CusClickListener() {
    }

    private void singleClick(View var1, long var2) {
        this.lastClickTime = var2;
        this.onSingleClick(var1);
    }

    public final void onClick(View view) {
        long clickTime = System.currentTimeMillis();
        int id = view.getId();
        if (this.viewId != id) {
            this.viewId = id;
            this.singleClick(view, clickTime);
        } else if (clickTime - this.lastClickTime > 500L) {
            this.singleClick(view, clickTime);
        }

    }

    public ViewGroup getContainer() {
        return this.viewGroup;
    }

    public void setContainer(ViewGroup var1) {
        this.viewGroup = var1;
    }

    public abstract void onSingleClick(View var1);
}
